<!DOCTYPE html>
<html>
<head>
    <title>出差申请单</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/general/erp5/public/static/layui/css/layui.css">
    <link rel="stylesheet" href="/general/erp4/static/layui/css/default.css?t=1586046995308" media="all">
    <link rel="stylesheet" type="text/css" href="/general/erp5/public/static/layui/css/customer.css">
</head>
<body>
<div class="layui-fluid" id="LAY-component-grid-list">
    <div id="body_box" class="layui-row layui-col-space10 demo-list">
        <h2 style = "width: 100%;text-align: center;margin-bottom: 10px;margin-top: 10px;padding-bottom: 10px;border-bottom: 1px solid #000000;">月度计划表</h2>
        <form class="layui-form" style = "padding-top: 10px;">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <table class="layui-table" lay-filter="test">
                        <thead>
                        <tr>
                            <th rowspan="2">序号</th>
                            <th style = "text-align: center;" colspan="2">申报部门</th>
                            <th style = "text-align: center;" rowspan="2">申报人</th>
                            <th style = "text-align: center;" rowspan="2">项目合同编号</th>
                            <th style = "text-align: center;" rowspan="2">出差人</th>
                            <th style = "text-align: center;" rowspan="2">出差人数</th>
                            <th style = "text-align: center;" colspan="3">预计出差起止日期</th>
                            <th style = "text-align: center;" colspan="3">出差信息</th>
                            <th style = "text-align: center;" colspan="4">出差预算（元）</th>
                            <th style = "text-align: center;" rowspan="2">备注</th>
                        </tr>
                        <tr>
                            <th colspan="1" style = "text-align: center;">一级部门</th>
                            <th colspan="1" style = "text-align: center;">二级部门</th>
                            <th colspan="1" style = "text-align: center;">起</th>
                            <th colspan="1" style = "text-align: center;">止</th>
                            <th colspan="1" style = "text-align: center;">天数</th>
                            <th colspan="1" style = "text-align: center;">出差地</th>
                            <th colspan="1" style = "text-align: center;">客户名称</th>
                            <th colspan="1" style = "text-align: center;">出差事由</th>
                            <th colspan="1" style = "text-align: center;">交通费</th>
                            <th colspan="1" style = "text-align: center;">住宿费</th>
                            <th colspan="1" style = "text-align: center;">餐费</th>
                            <th colspan="1" style = "text-align: center;">合计</th>
                        </tr>
                        </thead>
                        <tbody class="addlists">
                        {foreach $itemlist as $key => $value}
                            <tr>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['id']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['department1']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['department2']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['report_user']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['contract_num']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['traveler']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['traveler_num']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['start_time']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['end_time']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['day_num']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['trip_address']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['customer_name']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['reason']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['traffic_money']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['hotel_money']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['meal_money']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['total_money']}" disabled>
                                </td>
                                <td>
                                    <input type="text" class="layui-input" value = "{$value['remark']}" readonly>
                                </td>
                            </tr>
                        {/foreach}
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    {if($isshow)}
                    <button type="submit" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="demo3" id = "demo3">审批</button>
<!--                    <button type="submit" class="layui-btn layui-btn-sm layui-btn-danger" lay-submit="" lay-filter="demo4" id = "demo4">驳回</button>-->
                    {/if}
                    <a href = "/general/erp5/public/tripapi/plan/index" class="layui-btn layui-btn-sm layui-btn-primary">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
<script type="text/javascript" src = "/general/erp5/public/static/layui/layui.all.js"></script>
<script src="/general/erp5/public/static/layui/trip/jquery.min.js"></script>
<script type="text/javascript" src = "/general/erp5/public/static/layui/trip/travel_plan/triplan.js?v=100"></script>
<script src="/general/erp5/public/static/layui/trip/travel_plan/indexplan.js?v=12312"></script>
</html>